import { changeUserInfo } from './reduce'
export const userInfo = (preState: any, action: { type: string; data: any }) => {
  const { type, data } = action
  switch (type) {
    case 'userInfo':
      return changeUserInfo(data)
    default:
      return preState
  }
}
